<?php

class ome_finder_ldward
{

	var $column_edit = '操作';
	var $column_edit_width = "100";

	public function column_edit($row)
	{
		$finder_id = $_GET['_finder']['finder_id'];
		return '<a href="index.php?app=ome&ctl=admin_ldward&act=lmedit&id=' . $row['id'] . '&finder_id='.$finder_id.'" target="dialog::{width:560,height:300,title:\'编辑\'}">编辑</a>';
	}
    var $detail_ldward_line = "明细行";
    function detail_ldward_line($row){
        $render = app::get('ome')->render();
        $sql="SELECT * from sdb_ome_ldward_line where ldward_id=".$row;
        
        $db=kernel::database();
        $basicMaterialInfo=$db->select($sql);   
        $render->pagedata['res'] = $basicMaterialInfo;
        return $render->fetch('admin/ldward/ldward_line.html');
    }
    var $detail_ldward_line1 = "明细行1";
    function detail_ldward_line1($row)
    {
        $render = app::get('ome')->render();
        $sql="SELECT * from sdb_ome_ldward_line where ldward_id=".$row;
        
        $db=kernel::database();
        $basicMaterialInfo=$db->select($sql);   
        $render->pagedata['res'] = $basicMaterialInfo;
        return $render->fetch('admin/ldward/ldward_line.html');
    }

}